package com.ruoyi.project.credentials.mapper;

import java.util.List;

import com.ruoyi.project.credentials.domain.Credentials;

/**
 * 用户证书Mapper接口
 *
 * @author chenweiguo
 * @date 2020-05-05
 */
public interface CredentialsMapper {
    /**
     * 查询用户证书
     *
     * @param credentialsId 用户证书ID
     * @return 用户证书
     */
    public Credentials selectCredentialsById(Long credentialsId);

    /**
     * 查询用户证书列表
     *
     * @param credentials 用户证书
     * @return 用户证书集合
     */
    public List<Credentials> selectCredentialsList(Credentials credentials);
    public List<Credentials> selectCredentialsListByOrdinary(Credentials credentials);

    /**
     * 新增用户证书
     *
     * @param credentials 用户证书
     * @return 结果
     */
    public int insertCredentials(Credentials credentials);

    /**
     * 修改用户证书
     *
     * @param credentials 用户证书
     * @return 结果
     */
    public int updateCredentials(Credentials credentials);

    /**
     * 删除用户证书
     *
     * @param credentialsId 用户证书ID
     * @return 结果
     */
    public int deleteCredentialsById(Long credentialsId);

    /**
     * 批量删除用户证书
     *
     * @param credentialsIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteCredentialsByIds(Long[] credentialsIds);
}
